var rootPath = getRootPath();

$(function() {
	var width = window.screen.width;
	if(width < 601) {
		$("#basic").html("< 返回");
	}
	
	$("#basic").click(function() {
		event.stopPropagation();
		window.history.go(-1);
	});
	
	var uid = "123";
	
	createQR(uid);
});

function createQR(uid) {
	var width = window.screen.width;
	var href = rootPath + "/normal/css/layouts/";
	if(width > 600) {
		href += "bindWx/_all.css";
	} else {
		href += "menu/_all.css"; 
	}
	
	var obj = new WxLogin({
		id:"wx",//div的id
		appid : appid,
		scope : scope,
		redirect_uri : redirect_uri,
		state : hex_md5("bind" + uid) + "_" + uid,
		style : style,        
		href : href
	 });
}